package cn.wei.sdd.core.controller.wx;


import cn.wei.common.result.R;
import cn.wei.sdd.base.util.JwtUtils;
import cn.wei.sdd.core.pojo.entity.Notice;
import cn.wei.sdd.core.service.NoticeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Wei
 * @since 2022-02-19
 */
@RestController
@Api(tags = "通知管理")
@RequestMapping("/wxApi/core/notice")
public class NoticeController {

    @Resource
    private NoticeService noticeService;

    @ApiOperation("上架通知列表")
    @GetMapping("/getUpNoticeList")
    public R getNoticeList(){
        List<Notice> noticeList = noticeService.getUpNoticeList();
        return R.ok().data("noticeList",noticeList);
    }


}

